<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>垂直属性</title>
</head>
<body>
    
<!-- 用于指定同一行元素之间，还有表格单元格内部字体垂直方向 -->
    <div class="div1">
        你好<span>111</span>
    </div>

    <style>
        .div1{
            font-size: 100px;
            width: 800px;
            height: 800px;
            background-color: rgb(255, 0, 0,0.8);
        }
        span{
            font-size: 20px;
            vertical-align: middle;
        }
    </style>
</body>
</html>